Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] #257 - 명함 그룹뷰 인파이나이트스크롤 구현 #261

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

hyun99999
Copy link
Member

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • prepareForReuse 로 셀 초기화
  • 명함 추가, 명함큐알 추가, 명함삭제, 큐알스캔 뒤로가기, 그룹 편집 뒤로가기 시에 그룹뷰 갱신 노티 추가
  • viewWillAppear 에서 구현하려했지만 컬렉션뷰 맨 위로 올리는 과정이 추가되기 위해서 노티 사용
  • 무한스크롤 구현
  • 현재 맨 위로 올리기 위해서 scrolltotop 메서드를 사용하는데 컬렉션뷰의 델리게이트가 먼저 실행되서 item 0 으로 이동하지 못하고 에러가 발생해서 현재 1초의 딜레이를 주고 있는데 좀 더 고민해보겠습니당

스켈레톤 을 통해서 1초 정도 플레이스홀더 보여주고 자연스럽게 top 으로 이동 등

📮 관련 이슈

- prepareForReuse 로 셀 초기화
- 명함 추가, 명함큐알 추가, 명함삭제, 큐알스캔 뒤로가기, 그룹 편집 뒤로가기 시에 그룹뷰 갱신 노티 추가
- viewWillAppear 에서 구현할라했지만 컬렉션뷰 맨 위로 올리는 과정이 추가되기 위해서 노티 사용
- 무한스크롤 구현
- 현재 맨 위로 올리기 위해서 1초의 딜레이를 주고 있는데 좀 더 고민해보겠습니당
@hyun99999 hyun99999 added Hyungyu 🐯 현규 교수님 작업 Feat 새로운 기능 구현 labels Dec 29, 2021
@hyun99999 hyun99999 self-assigned this Dec 29, 2021
Copy link
Member

@dlwns33 dlwns33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다!

Comment on lines +31 to 44
override func prepareForReuse() {
super.prepareForReuse()

backgroundImageView.image = UIImage()
titleLabel.text = ""
descriptionLabel.text = ""
userNameLabel.text = ""
birthLabel.text = ""
mbtiLabel.text = ""
instagramIDLabel.text = ""
mbtiLabel.text = ""
instagramIcon.image = UIImage()
urlIcon.image = UIImage()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 세심하네요 좋아좋아

@@ -63,32 +63,22 @@ class GroupViewController: UIViewController {

// 그룹 이름들을 담을 변수 생성
var serverGroups: Groups?
var serverCards: CardsInGroupResponse?
var frontCards: [FrontCard]? = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다..

}

extension QRScanViewController {
@objc func dismissQRScanViewController() {
NotificationCenter.default.post(name: .reloadGroupViewController, object: nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요것도 감사합니다..

@@ -107,9 +97,26 @@ extension GroupViewController {
navigationController?.navigationBar.isHidden = true
}

private func setNotification() {
NotificationCenter.default.addObserver(self, selector: #selector(didRecieveDataNotification(_:)), name: Notification.Name.passDataToGroup, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(scrollToTop), name: .reloadGroupViewController, object: nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 reloadGRoupViewController은 Notification.Name안해두 먹히나요??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵! notification.name 을 확장하거든여
스크린샷 2021-12-29 오후 10 26 17

@hyun99999 hyun99999 merged commit ded11cd into release1.0/3 Dec 29, 2021
@hyun99999 hyun99999 deleted the release1.0/#257 branch December 29, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 명함 그룹뷰 인파이나이트스크롤 구현
2 participants